var Browser_Name = navigator.appName;
var Browser_Agent = navigator.userAgent.toLowerCase();

if (Browser_Name == "Netscape") {
	if (Browser_Agent.indexOf("mac") != -1) {
	    if(Browser_Agent.indexOf("iphone") > -1 || Browser_Agent.indexOf("ipod")
 > -1){
	    	//$('body,.width,.warp,.music_left,.music_right').css('height','600px');
	    }
	 }
	 if (Browser_Agent.indexOf("android") != -1) {
	    //$('body,.width,.warp,.music_left,.music_right').css('height','600px');
	 }
}
var supportsOrientationChange = "onorientationchange" in window,  
    orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";  
  
window.addEventListener(orientationEvent, function() {  
    $('body,.width,.warp,.music_left,.music_right').css('width','100%');
}, false);  


$(function()
{
	//滑动门
	var menu = $('.header .menu');
	menu.toggle(function(){	
		$('.warp,.header,.line,.status').animate({left:'264px'},500);	
		$('#arrow_l,#arrow_r').hide()
		},function(){				
		$('.warp,.header,.line,.status').animate({left:'0'},500);
		$('#arrow_l,#arrow_r').show()	
			})
		
	/*关闭弹出层*/
	$('.close').click(function(){
		$('.layer,#showdiv,#maks,#dateil').hide();
		})
		
	/*箭头*/
	$('.arrow_').bind('click',function(){
		$(this).addClass('current').siblings().removeClass('current');
				})
	$('body,.width,.warp,.music_left,.music_right').css('width',document.body.clientWidth);
	$('.music_right').css('left',document.body.clientWidth);
	
	
	$('#arrow_l').click(function(){	
		$('.music_right').css({"z-index":-1},{left:"1000px"})
		$('.music_left').css('z-index',1)
		});
	
	$('#arrow_r').click(function(){	
		$('.music_right').css('left',0);	
		$('.music_left').css('z-index',-1)
		$('.music_right').css('z-index',1)
		})
		
	/*焦点切换*/	
	$(".ipt_text").focus(function(){
	var txt_value=$(this).val();
	if(txt_value==this.defaultValue){$(this).val("");}
	});
	
	$(".ipt_text").blur(function(){
	var txt_value=$(this).val();
	if(txt_value==""){$(this).val(this.defaultValue);}
	});
	
	/*我的THE ONE 分享*/
	$('.shareicon').toggle(function(){
		$('#bdshare').fadeIn();
		},function(){			
		$('#bdshare').fadeOut();
			})
	/*活动说明*/
	$('.activity ul li').click(function(){
		$(this).addClass('current').siblings().removeClass('current');
		})
});


	
/*上传*/
function shangc(){
	$('#jia01,.mengx').hide();
	$('#jia02').show();
	
	}
function shangc01(){
	$('#jia02,.mengx').hide();
	$('#jia03').show();
	
	}	
function shangc02(){
	$('#jia03,.mengx').hide();
	$('#jia04').show();
	
	}
function shangc03(){
	$('#jia04,.mengx').hide();
	$('#jia05').show();
	
	}	
